package com.example.stringbufferlogger.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 文件配置表实体类
 * 对应数据库表：FILE_CONFIG
 */
@Data
@TableName("FILE_CONFIG")
public class FileConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID(自增)
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 接口标识
     */
    @TableField("interface_adrs")
    private String interface_adrs;

    /**
     * 文件类型
     */
    @TableField("file_type")
    private String fileType;

    /**
     * 文件字段
     */
    @TableField("file_field")
    private String fileField;

    /**
     * 映射字段
     */
    @TableField("mapping_field")
    private String mappingField;

    /**
     * 是否忽略(0-否 1-是)
     */
    @TableField("is_ignore")
    private Integer isIgnore;

    /**
     * 是否存在值映射(0-否 1-是)
     */
    @TableField("has_value_mapping")
    private Integer hasValueMapping;

    /**
     * 读取顺序(数字越小优先级越高)
     */
    @TableField("read_order")
    private Integer readOrder;

    /**
     * 值映射配置JSON
     */
    @TableField("value_mapping_json")
    private String valueMappingJson;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInterface_adrs() {
        return interface_adrs;
    }

    public void setInterface_adrs(String interface_adrs) {
        this.interface_adrs = interface_adrs;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFileField() {
        return fileField;
    }

    public void setFileField(String fileField) {
        this.fileField = fileField;
    }

    public String getMappingField() {
        return mappingField;
    }

    public void setMappingField(String mappingField) {
        this.mappingField = mappingField;
    }

    public Integer getHasValueMapping() {
        return hasValueMapping;
    }

    public void setHasValueMapping(Integer hasValueMapping) {
        this.hasValueMapping = hasValueMapping;
    }

    public Integer getReadOrder() {
        return readOrder;
    }

    public void setReadOrder(Integer readOrder) {
        this.readOrder = readOrder;
    }

    public String getValueMappingJson() {
        return valueMappingJson;
    }

    public void setValueMappingJson(String valueMappingJson) {
        this.valueMappingJson = valueMappingJson;
    }

    public Integer getIsIgnore() {
        return isIgnore;
    }

    public void setIsIgnore(Integer isIgnore) {
        this.isIgnore = isIgnore;
    }

    public String getInterfaceUrl() {
        return interface_adrs;
    }
}